package cn.wolfcode.crm.serivce;

import cn.wolfcode.crm.domain.SpendClassify;
import cn.wolfcode.crm.util.JSONResult;

import java.util.List;

public interface ISpendClassifyService {
    void deleteByPrimaryKey(Long id);

    void saveOrUpdate(SpendClassify record);

    SpendClassify selectByPrimaryKey(Long id);


    List<SpendClassify> selectAll();

    //查询支出父分类
    List<SpendClassify>  selectRootClassify();


    //查询子分类
    List<SpendClassify>  selectChildrenSpendClaaify(Long parent_id);



    //添加父分类
    void saveSpendParent(String text);


    void saveSpendChildren(String text,Long id);
}
